<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
    <meta charset="utf-8">
	<script src="home.js"></script>
</head>
<body>
    <a href="#/home">主页</a> 
    <a href="#/other">其他页</a> 
	<section id="homeCtl" ng-controller="homeCtl">
		{{title}}
		
		<ul>
		  <li ng-repeat="product in productList | limitTo: 2">
			{{product.name}}
		  </li>
		</ul>
		
		<div ui-view></div>
	</section>
	
    <script id="templates/self_script.html" type="text/ng-template">
      <div style="color:red;">this is self script html - {{title}}</div>
    </script>
</body>
<script>
	var mainModule = require("home");
	var main = new mainModule();
	main.init();
</script>
</html>